from math import factorial
from random import random

# num1 = 10
# num2 = 20
# num3 = 30
#
# print(not num1>num2)
# print(num1<num2 and num2>num3)

# 基于多元赋值
# a = 10
# b = 20
#
# a,b=b,a
#
# print(a,b)
#
# a=10
# b=True
# print(f'两数之和为:{a+b}')


# a = input('请输入一个整数')
# a=int(a)
#
# b=random()+10
# print(b)
# while True:
#     if a>10:
#         print('输入的数太大了')
#     elif a<10:
#         print('输入的数太小了')
#     else:
#         print(a)
#

# a = int( input('请输入一个整数:'))
#
# if a%2==1:
#     print('这是一个奇数')
# else:
#     print('这是一个偶数')
# print('奇偶数判断')

# 空语句判断
# a =int(input('请输入一个整数:'))
# if a==1:
#     pass
# elif a==2:
#     print('这是一个比1大的字符串')
# else:
#     print('啥也不是')

# 计算5的阶乘

# a = int(input('计算阶乘:'))
# i=1
# sum=0
# while i<=a:
#     factor=1
#     j=1
#     while j<=i:
#         factor*=j
#         j+=1
#     i+=1
#     sum+=factor
# print(sum)

# sum=1
# ret =1
# while ret<=a:
#     sum=(sum*ret)
#     ret=ret+1
# print(sum)

